import re

import requests
import os
from lxml import etree

url = 'https://www.sanguosha.cn/pc/hero-list.html'

heros = requests.get(url)

heros_list = re.findall(r' <div class="general-img"><img src="(.*?)" alt="(.*?)" /></div>',heros.text,re.S)
for i in heros_list:
    print(i)




